package contacto;

import javax.ejb.EJB;
import imports.Contacto;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import java.util.ArrayList;


@RequestScoped
@ManagedBean(name="contacto")
public class ContactoBean {


	
@ManagedProperty(value = "#{contacto}")
private Contacto contacto= new Contacto();
private ArrayList<Contacto> contactoList;
private String nombre;
private String msn;
private String correo1;
private String correo2;
private String correo3;
private int tel1;
private int tel2;
private int tel3;


public String reinit() {  
    contacto = new Contacto();
	
    return null;  
      
     
}  
	
public Contacto getContacto() {
	return contacto;
}

public void setContacto(Contacto contacto) {
	this.contacto = contacto;
}

public String getNombre() {
	return nombre;
}

public void setNombre(String nombre) {
	this.nombre = nombre;
}

public String getMsn() {
	return msn;
}

public void setMsn(String msn) {
	this.msn = msn;
}

public String getCorreo1() {
	return correo1;
}

public void setCorreo1(String correo1) {
	this.correo1 = correo1;
}

public String getCorreo2() {
	return correo2;
}

public void setCorreo2(String correo2) {
	this.correo2 = correo2;
}

public String getCorreo3() {
	return correo3;
}

public void setCorreo3(String correo3) {
	this.correo3 = correo3;
}

public int getTel1() {
	return tel1;
}

public void setTel1(int tel1) {
	this.tel1 = tel1;
}

public int getTel2() {
	return tel2;
}

public void setTel2(int tel2) {
	this.tel2 = tel2;
}

public int getTel3() {
	return tel3;
}

public void setTel3(int tel3) {
	this.tel3 = tel3;
}


public void setContactoList(ArrayList<Contacto> contactoList) {
	this.contactoList = contactoList;
}

public ArrayList<Contacto> getContactoList() {
	return contactoList;
}


}
